import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';

class ThemeEvent extends Equatable {
  ThemeEvent([List props = const []]) : super(props);
}

class UpdateBrightnessEvent extends ThemeEvent {
  bool brightness;

  UpdateBrightnessEvent({@required this.brightness})
      : assert(brightness != null),
        super([brightness]);
}

class UpdateThemeEvent extends ThemeEvent {
  String color;

  UpdateThemeEvent({@required this.color})
      : assert(color != null),
        super([color]);
}
